﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>水电抄表维护</title>
    <link href="../../../../WebPlugin/jquery-easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../../WebPlugin/jquery-easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../../../WebPlugin/jquery-easyui/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../../../../WebPlugin/jquery-easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>

    <script src="../../../../WebPlugin/jquery-easyui/JQueryCommon.js" type="text/javascript"></script>
    <script src="../../PageJS/Cost/MakeFormManager.js" type="text/javascript"></script>
    
</head>
<body class="easyui-layout">
    <div region="west" split="true" id="layout_west" style="width:350px;" closable="false" title="表单查询"> 
            <div class="easyui-layout" fit="true" border="false">
            <div  region="north" border="false">
	        <table style="padding:10px;">
		       <tr>
			        <td>请选择分类:</td>
			        <td>
			        <input id="cbformType" class="easyui-combobox"  style="width:200px;" required="true" valueField="code" textField="name" value="0" ></input></td>
		        </tr>
		        <tr>
			        <td>请选择类型:</td>
			        <td>
			        <input id="cbarea" class="easyui-combobox" style="width:200px;"  required="true" valueField="code" textField="name"  value="0"></input></td>
		        </tr>
		        
		        <tr>
			        <td colspan="2" align="center"><a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="btn_searchmakeform();">查找</a></td>
		        </tr>
	        </table>
	        </div>
	         <div region="center" border="false" title="表单列表">
	                <div id="tool1">
	                <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="btn_searchallmakeform();">全部表单</a>
	                <a href="#" class="easyui-menubutton" plain="true" menu="#mm1" iconCls="icon-add" >表单操作</a>
		            <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print" onclick="">打印表单</a>
	                </div>
	                <div id="mm1" style="width:120px;">
		                <div iconCls="icon-add" onclick="dlg_changeformtype_show();">批量创建表单</div>
		                <div iconCls="icon-add" onclick="dlg_changeformtype_show();">创建空表单</div>
		                <div iconCls="icon-cancel" onclick="btn_deletemakeform();">删除表单</div>
	                </div>
	              <table id="makeformlistGird"  class="easyui-datagrid" toolbar="#tool1" fit="true" border="false" iconCls="icon-edit" singleSelect="true">
		             <thead>
			            <tr>
			                <th field="ck" checkbox="true"></th>
				            <th field="BillNo" width="100">单据号</th>
				            <th field="MeterType2" width="80" formatter="typeFormatter2">分类</th>
				            <th field="MeterType" width="80" formatter="typeFormatter1">类型</th>
				            <th field="MeterDate" width="120">建立时间</th>
				            <th field="CompleteFlag" width="80">是否完成</th>
				            <th field="GetEmpName" width="100">抄表人</th>
				            <th field="EmpName" width="100">登记人</th>
			            </tr>
		            </thead>
	               </table>
	        </div>
	    </div>
    </div>
    <div region="center"  title="表单明细">
   	    <div id="tool2">
   	        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="btn_makeformorder_add();">添加</a>
   	        <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="btn_makeformorder_del();">删除</a>
            <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="btn_makeformorder_reload();">刷新</a>
            <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print" onclick="">打印</a>
            <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="btn_materformorder_auditing();">审核完成</a>
        </div>
	    <table id="formorderGrid"  class="easyui-datagrid" toolbar="#tool2" fit="true" singleSelect="true" pagination="true">
           <thead>
            <tr>
	            <th field="SrccName" width="80">房间号</th>
	            <th field="OwnerName" width="100">业主</th>
	            <th field="LastMeterDate" width="120">上次抄表时间</th>
	            <th field="LastNum" width="80">上次数量</th>
	            <th field="ThisMeterDate" width="120">本次抄表时间</th>
	            <th field="ThisNum" width="80" styler="thisnumStyler" editor="{type:'numberbox',options:{precision:1}}">本次数量</th>
	            <th field="MeterNum" width="80">用量</th>
	            <th field="Thiscost" width="100">本次应交</th>
            </tr>
        </thead>
       </table>
    </div>
</body>

<%--弹出窗--%>

<div id="dlg-button2" style="display:none">           
	<a href="#" class="easyui-linkbutton" onclick="dlg_changeformtype_confirm();">确定</a>
	<a href="#" class="easyui-linkbutton" onclick=" $('#dlg-changeformtype').dialog('close');">取消</a>   
</div>
<div id="dlg-changeformtype" title="选择创建表单的类型" class="easyui-dialog" buttons="#dlg-button2" icon="icon-save" style="background:#fafafa;padding:10px;width:300px;height:250px;" modal="true">
    <table>
       <tr>
            <td></td>
            <td><input id="formtype1" type="checkbox" value="1"/>公摊水费</td>
       </tr>      
       <tr>
            <td></td>
            <td><input id="Checkbox1" type="checkbox" value="1"/>公摊电费</td>
       </tr>
       <tr>
            <td></td>
            <td><input id="Checkbox2" type="checkbox" value="1"/>住宅水费</td>
       </tr>
       <tr>
            <td></td>
            <td><input id="Checkbox3" type="checkbox" value="1"/>住宅电费</td>
       </tr>
       <tr>
            <td></td>
            <td><input id="Checkbox4" type="checkbox" value="1"/>门面水费</td>
       </tr>
       <tr>
            <td></td>
            <td><input id="Checkbox5" type="checkbox" value="1"/>门面电费</td>
       </tr>
    </table>
</div>


<div id="dlg-addform" class="easyui-dialog" title="添加" style="width:500px;height:400px;padding:5px"
 buttons="#dlg-buttons" resizable="true" modal="true">
    <div id="tool3" class="toolbar" style="display:none">
    <table cellpadding="0" cellspacing="0" style="width:100%">
    <tr>
	    <td style="text-align:right;padding-right:2px">
		    <input id="searchmeter" class="easyui-searchbox" searcher="dlg_meterlist_search"></input>
	    </td>
    </tr>
    </table>	   
    </div>
     <table id="meterlistGrid"  class="easyui-datagrid" toolbar="#tool3" fit="true" singleSelect="false" pagination="true">
           <thead>
            <tr>
                <th field="ck" checkbox="true"></th>
	            <th field="MeterType" width="100">类型</th>
	            <th field="MeterType2" width="100">分类</th>
	            <th field="RoomNumber" width="100">房间号</th>
	            <th field="OwnerName" width="120">业主</th>
            </tr>
        </thead>
       </table>
</div>
<div id="dlg-buttons">
	<a href="#" class="easyui-linkbutton" onclick="dlg_addform_confirm()">确定</a>
	<a href="#" class="easyui-linkbutton" onclick="dlg_addform_close();">取消</a>
</div>

</html>
